package com.lianzai.car.dao;

import com.lianzai.car.domain.CarInfoDO;
import com.lianzai.car.domain.CarLogDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CarLogDao {

    CarLogDO get(Integer id);

    CarLogDO getByOrderId(String orderId);

    CarLogDO getByCameraId(Long cameraId);

    CarLogDO getByCarNumberAndCommunity(@Param("carNumber") String carNumber, @Param("communityId") Long communityId);

    List<CarLogDO> getEnterAndLeaveByCarNumberAndCommunity(@Param("carNumber") String carNumber, @Param("communityId") Long communityId);

    List<CarLogDO> list(Map<String,Object> map);

    int count(Map<String,Object> map);

    int save(CarLogDO carLog);

    int syncLog(CarLogDO carLog);

    int updatePayOrder(CarLogDO carLog);

    int updatePayStatus(CarLogDO carLog);

    int payedByCarNumber(CarLogDO carLog);

    int bindTicket(CarLogDO carLogDO);
}
